import $ from 'jquery';

$.ajaxPrefilter(options => {
    if(options.url && options.url.indexOf(process.env.API_URL) !== 0) {
        options.url = (process.env.API_URL + options.url).replace(/[\\\/]+/g, '/');
    }
});